import { prop, Ref } from "@typegoose/typegoose";
import { Base } from "./base";
import { User } from "./user";

/** 工具类 */
export class Tool extends Base {

  @prop({})
  logo: string;

  @prop({})
  href: string;

  @prop({})
  title: string;

  @prop({})
  type: string;

  @prop({})
  remark: string;

  @prop({ type: User, ref: () => User })
  user: Ref<User>;
}